﻿<%@ Page Title="" Language="C#" MasterPageFile="~/sitemaster.master" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="Portal_KonTum.Search" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <h3>Kết Quả Tìm kiếm</asp:Label></h3>
        <div class="cat">
            Từ khóa:
            <asp:TextBox runat="server" ID="txtSearch" Width="60%"/>
            <asp:Button runat="server" ID="btnSend" Text="" OnClick="btnSend_Click" class="search_img"/>

            <asp:GridView ID="GridView1" runat="server" EnableModelValidation="True" 
                Width="100%" AllowPaging="True" AutoGenerateColumns="False" 
                BorderColor="White" onpageindexchanged="GridView1_PageIndexChanged" 
                onpageindexchanging="GridView1_PageIndexChanging">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <h1>
                                <a href='ViewNews.aspx?NewID=<%# Eval("NewID") %>'><%# Eval("NewTitle")%></a>
                            </h1>
                            <i><%# Eval("CreateDate")%></i>
                            <br />
                            <img height="120px" src='\Admin\Uploads\Images\<%# Eval("Image") %>' width="160px" />
                            <div class="news_content">
                                <%# Eval("NewIntro")%>
                                <div align='right' style='margin:5px; text-align:right'><a href='ViewNews.aspx?NewID=<%# Eval("NewID") %>' style='color:#F00'>Xem Tiếp</a></div>
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                
            </asp:GridView>
        </div>
</asp:Content>
